
{% if query_string %}
    
<h1>Search Result For {{ query_string }} </h1>
{% for item in found_entries %}
<a href="{% url itemdetail item.Id%}"><h2>{{item.Name}}</h2></a><br/>
{% endfor %}
    
{% else %}
<h2>Search</h2>
   
<form method="POST" action=".">
        <table>
            {{ form.as_table }}
            <tr>
                <td>&nbsp;</td>
                <td>
					<input type="text" name="q" value="What To search">
                    <input type="submit" value="Search">
                </td>
            </tr>
        </table>

        {% if page.object_list %}
            {% for result in page.object_list %}
                <p>
                    {{ result.object.title }}
                </p>
            {% endfor %}
        {% else %}
            <p>No results found.</p>
        {% endif %}
    </form>
{% endif %}
